Popup Parent Element
A parent element that supports displaying "Popups" made via PopupWidget.
If a PopupParentElement has one or more active popups, it will prioritize those over passing inputs to any "normal" children. If you have any input handling you need to implement, make sure to handle it and return before calling super, so avoid any active popups potentially doubling up on captured input handling.
Author
fzzyhmstrs
Since
0.2.0
See also
Inheritors
Properties
Boolean prevents mouseReleased
from triggering on the Popup or Widget underneath the active popup if it's closed on mouseClicked
getter and setter for the cached element.
A stack for holding popupwidgets while allowing for easy list iteration as needed. For rendering this stack should be traversed in reverse order, which LinkedList makes easy with descendingIterator
Functions
Called by this parent element when it pushes a PopupWidget to its stack. This method should "blur" the focus of the underlying children in this parent element; using blur()
from Screen, for example.
called when a Popup is pushed to this element, after blurring.
When called the parent element should reselect a hovered element based on the supplied mouse positions, if it tracks such things
Applies a popup widget to this parent. If null is passed, removes the top (newest) popup instead